#ifndef SERIAL_H
#define SERIAL_H

#include <termios.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>

int open_serial_port(const char *device);
int configure_serial_port(int fd, int baud_rate, int data_bits, 
                          int stop_bits, char parity, bool flow_control);
void close_serial_port(int fd);

#endif // SERIAL_H